﻿using Bot.DomainItems;
using Bot.Domain.Enum;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Bot.Domain
{
    public class QuickReplyDto : BaseDto
    {
        public QuickReplyDto()
        { }
        [Newtonsoft.Json.JsonIgnore]
        public Guid BotId { get; set; }

        [Required]
        [MaxLength(128)]
        public string Name { get; set; }
        [Newtonsoft.Json.JsonIgnore]
        public bool IsDeleted { get; set; }
        [Required]
        [JsonConverter(typeof(EnumConverter))]
        public EnumReplyType Type { get; set; }
        [Required]
        public List<QuickReplyItemsDto> Items { get; set; }
    }
    public class QuickReplyDto_NoItems : BaseDto
    {
        public QuickReplyDto_NoItems()
        { }
        [Newtonsoft.Json.JsonIgnore]
        public Guid BotId { get; set; }

        [Required]
        [MaxLength(128)]
        public string Name { get; set; }
        [Required]
        [JsonConverter(typeof(EnumConverter))]
        public EnumReplyType Type { get; set; }
    }
}
